<?php /* Smarty version 2.6.12, created on 2011-07-22 17:12:00
         compiled from search.html */ ?>
<body>
<?php echo $this->_tpl_vars['xajax_scripts']; ?>
 
<div class=form_title><?php echo @MI_SEARCH_INPUT_CONDITIONS; ?>
</div>
<form method='get' onsubmit='return check_search_keys();'>
<script>

function ServerSync_RefreshLotList()
{
    if (document.getElementById("kit_id").value != '')
        xajax_Ajax_RefreshLotList(document.getElementById("kit_id").value);
    else
        document.getElementById('lot_no').options.length=1;
}

function check_search_keys()
{
    if (document.getElementById('genotypes').value == '' &&
        document.getElementById('sample_id').value == '' &&
        document.getElementById('kit_id').value == '' &&
        document.getElementById('lot_no').value == '' &&
        document.getElementById('institution').value == '' &&
        document.getElementById('proc_status').value == 'ANY' &&
        document.getElementById('patient_id').value == '' &&
        document.getElementById('name').value == '')
    {
        if (confirm('<?php echo @MI_NO_SEARCH_KEYS_CONFIRM; ?>
'))
            return true;
        else
            return false;
    }

    return true;
}

</script>
<input type='hidden' name='op' value='search'>
  <table width="50%" border='1' align="center" cellpadding='1' cellspacing='1' bordercolor="#157fb9" class=form_detail>
    <tr bordercolor="#cbe5f6"> 
      <td nowrap background='<?php echo $this->_tpl_vars['theme_url']; ?>
/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><?php echo @MI_GENOTYPES; ?>
</td>
      <td colspan=3> <input type='text' size="60" maxlength=120 name='genotypes' value='<?php echo $this->_tpl_vars['genotypes']; ?>
' /> 
        <div class=field_hint><?php echo @MI_GENOTYPES_SEARCH_HINT; ?>
</div></td>
    </tr>
    <tr bordercolor="#cbe5f6"> 
      <td nowrap background='<?php echo $this->_tpl_vars['theme_url']; ?>
/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><?php echo @MI_SAMPLE_ID; ?>
</td>
      <td colspan=3> <input type='text' size="60" maxlength=90 name='sample_id' value='<?php echo $this->_tpl_vars['sample_id']; ?>
'>
        <br/> <div class=field_hint><?php echo @MI_SAMPLE_ID_SEARCH_HINT; ?>
</div></td>
    </tr>
    <tr bordercolor="#cbe5f6"> 
      <th nowrap background='<?php echo $this->_tpl_vars['theme_url']; ?>
/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><?php echo @MI_SELECT_KIT_ID; ?>
</th>
      <td> <select name='kit_id' onchange='ServerSync_RefreshLotList();'>
          <option></option><?php $_from = $this->_tpl_vars['kit_id_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['kit_id'] => $this->_tpl_vars['kit_desc']):
?> <option value='<?php echo $this->_tpl_vars['kit_id']; ?>
'<?php if ($this->_tpl_vars['kit_id'] == $this->_tpl_vars['current_kit_id']): ?> selected<?php endif; ?>><?php echo $this->_tpl_vars['kit_id']; ?>
 - <?php echo $this->_tpl_vars['kit_desc']; ?>
</option> <?php endforeach; endif; unset($_from); ?> 
        </select></td>
      <th nowrap background='<?php echo $this->_tpl_vars['theme_url']; ?>
/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><?php echo @MI_TEST_BY2; ?>
</th>
      <td> <select name='test_by'>
          <option></option><?php $_from = $this->_tpl_vars['test_by_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['line']):
?>
          <option<?php if ($this->_tpl_vars['test_by'] == $this->_tpl_vars['line']['test_by']): ?> selected<?php endif; ?>><?php echo $this->_tpl_vars['line']['test_by']; ?>
</option> <?php endforeach; endif; unset($_from); ?> 
        </select></td>
    </tr>
    <tr bordercolor="#cbe5f6"> 
      <th nowrap background="<?php echo $this->_tpl_vars['theme_url']; ?>
/images/form_detail_pic03.jpg" style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><?php echo @MI_PROC_STATUS; ?>
</th>
      <td><select name="proc_status"><option value="ANY" <?php if ($this->_tpl_vars['proc_status'] == 'ANY'): ?>selected<?php endif; ?>><?php echo @_ANY; ?>
</option><option value="Y" <?php if ($this->_tpl_vars['proc_status'] == 'Y'): ?>selected<?php endif; ?>><?php echo @MI_FINAL; ?>
</option><option value='N'<?php if ($this->_tpl_vars['proc_status'] == 'N'): ?> selected<?php endif; ?>><?php echo @MI_UNFINISHED; ?>
</option></select></td>
      <th nowrap background='<?php echo $this->_tpl_vars['theme_url']; ?>
/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><?php echo @MI_KIT_LOT_NO; ?>
</th>
      <td> <select name='lot_no'>
          <option></option>
        </select></td>
    </tr>
    <tr bordercolor="#cbe5f6" style="display:none;"> 
      <th nowrap background='<?php echo $this->_tpl_vars['theme_url']; ?>
/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold; display: none;"><?php echo @MI_INSTITUTION; ?>
</th>
      <td colspan="3"> <select name='institution'>
          <option></option><?php $_from = $this->_tpl_vars['institution_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['line']):
?>
          <option<?php if ($this->_tpl_vars['institution'] == $this->_tpl_vars['line']): ?> selected<?php endif; ?>><?php echo $this->_tpl_vars['line']; ?>
</option> <?php endforeach; endif; unset($_from); ?> 
        </select></td>
    </tr>
    <tr bordercolor="#cbe5f6"> 
      <th nowrap background='<?php echo $this->_tpl_vars['theme_url']; ?>
/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><?php echo @MI_PATIENT_ID; ?>
</th>
      <td> <input type='text' size="20" maxlength=50 name='patient_id' value='<?php echo $this->_tpl_vars['patient_id']; ?>
'></td>
      <th nowrap background='<?php echo $this->_tpl_vars['theme_url']; ?>
/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><?php echo @MI_NAME; ?>
</th>
      <td> <input type='text' size="20" maxlength=50 name='name' value='<?php echo $this->_tpl_vars['name']; ?>
'></td>
    </tr>
  </table>  
  <br>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="center">
<input name="submit" type='submit' class='btn_search' value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo @MI_SEARCH; ?>
" /> 
        <input name="button" type='button' class='btn_clear' onClick='location.href="/search.php";' value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo @_CLEAR; ?>
" /></td>
    </tr>
  </table>
</form>
<br/>
<div class=form_title><?php echo @MI_SAMPLES_SEARCH_RESULT; ?>
 - <?php echo @MI_RESULT_DISPLAY_COUNT; ?>
 <?php echo $this->_tpl_vars['search_ret_sample_display_count']; ?>
/<?php echo $this->_tpl_vars['search_ret_sample_max_count']; ?>
 <?php echo @MI_RESULT_MAX_COUNT; ?>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'browse.html', 'smarty_include_vars' => array('browse' => $this->_tpl_vars['search_ret_sample'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<br/>
<?php if (! empty ( $this->_tpl_vars['search_ret_old_sample'] )): ?>
<div class=form_title><?php echo @MI_OLD_SAMPLES_SEARCH_RESULT; ?>
 - <?php echo @MI_RESULT_DISPLAY_COUNT; ?>
 <?php echo $this->_tpl_vars['search_ret_old_sample_display_count']; ?>
/<?php echo $this->_tpl_vars['search_ret_old_sample_max_count']; ?>
 <?php echo @MI_RESULT_MAX_COUNT; ?>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'browse.html', 'smarty_include_vars' => array('browse' => $this->_tpl_vars['search_ret_old_sample'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php endif; ?>
<script>
    ServerSync_RefreshLotList();
    document.getElementById('genotypes').focus();
</script>